import { Controller, Get, Query } from "@nestjs/common";
import { defer, of, map, concatMap } from "rxjs";
import * as puppeteer from "puppeteer"
import axios from "axios";
import { BiliUserActionHookService } from "./bili.user.action.hook.service";

@Controller("bili/user/action/hook")
export class BiliUserActionHookController {
  constructor(
    private readonly biliUserActionHookService: BiliUserActionHookService
  ) {}

  @Get("fire")
  async fire(@Query() query: {account_id: number}) {
    return this.biliUserActionHookService.fire(query.account_id)
  }
}